﻿@using MiniBottles.Models;
@model IEnumerable<DictCollection>

@{
    ViewBag.Title = AppResource.MyCollection;
    int counter = 0;
    int counter2 = 0;
}

@section leftmenu
 {
    @Html.Action("Menu", "Home")
}
<h5 class="title">@ViewBag.Title</h5>
<div class="greystrip"></div>
<div class="whitestrip"></div>

<div class="show-content" >
    @*<div id="collectionCarousel" class="carousel slide" style="display: none">

        <!-- Carousel items -->
        <div class="carousel-inner">

            @foreach (DictCollection collection in Model)
            {

                if (!string.IsNullOrEmpty(collection.FileName))
                {

                    if (counter == 0)
                    {
                <div class="active item">
                    <a href="@Url.Action("Index", "Collection", new { collectionId = collection.Id })" title="@collection.Name">
                        <img src="~/Upload/big/@collection.FileName" /></a>
                </div>
                    }
                    else
                    {
                <div class="item">
                    <a href="@Url.Action("Index", "Collection", new { collectionId = collection.Id })" title="@collection.Name">
                        <img src="~/Upload/big/@collection.FileName" /></a>
                </div>
                    }
                    counter++;


                }

            }

        </div>
        <!-- Carousel nav -->
        <a class="carousel-control left" href="#collectionCarousel" data-slide="prev">&lsaquo;</a>
        <a class="carousel-control right" href="#collectionCarousel" data-slide="next">&rsaquo;</a>
    </div>

    <div class="greystrip"></div>
    <div class="whitestrip"></div>*@






    @foreach (DictCollection collection in Model)
    {


        if (!string.IsNullOrEmpty(collection.FileName))
        {
            counter2++;
        @Html.Partial("_DictCollection", collection);
                                                    if (counter2 % 5 == 0)
                                                    {
        <div class="clearfix"></div>
                                                    }

        }

    }
</div>
